﻿using System;
using System.Collections.Generic;

using System.Text;

namespace RoughJs.Ast
{
    /// <summary>
    /// 通用对象引用知道如何查询/修改 目标对象的一些属性/索引
    /// </summary>
    public abstract class Ref
    {
        

        public virtual bool has(Context cx)
        {
            return true;
        }

        public abstract Object get(Context cx);

        public abstract Object set(Context cx, Object value);

        public virtual bool delete(Context cx)
        {
            return false;
        }
    }
}
